﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace QuTouTiaoAssist.Entity
{
    /// <summary>
    /// 返回数据抽象类
    /// </summary>
    class QttResultInfo<T> : QttResultStatusInfo where T:new()
    {
        /// <summary>
        /// 数据字段
        /// </summary>
        [JsonProperty("data")]
        public T Data;
    }

    /// <summary>
    /// 返回数据状态
    /// </summary>
    class QttResultStatusInfo
    {
        /// <summary>
        /// 错误码
        /// </summary>
        [JsonProperty("code")]
        public int Code = 0;

        /// <summary>
        /// 错误信息
        /// </summary>
        [JsonProperty("message")]
        public string Message;

        /// <summary>
        /// 时间
        /// </summary>
        [JsonProperty("currentTime")]
        public long CurrentTime; 
    }
}
